package com.buddy.syn.block._03;

public class MyThreadB extends Thread {
    private Task task;
    public MyThreadB(Task task){
        super();
        this.task = task;
    }

    public void run(){
        super.run();
        CommonUtils.beginTime2 = System.currentTimeMillis();
        task.doLongTimeTask();
        CommonUtils.endTime2 = System.currentTimeMillis();
    }
}
